package com.axjy.service.impl;

import com.axjy.dao.AdminMapper;
import com.axjy.pojo.Admin;
import com.axjy.service.AdminService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by 13802 on 2018/1/22.
 */
@Service
@Transactional
public class AdminServiceImpl implements AdminService {

    @Resource
    private AdminMapper adminMapper;
    @Override
    public Admin login(String username, String password) {
        Admin admin=adminMapper.find(username,password);
        return admin;
    }
}
